//
//  SoundHandler.h
//  iFly
//
//  Created by Petko Haydushki on 12/12/14.
//  Copyright (c) 2014 TeamDifferent. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SpriteKit/SpriteKit.h>
#import <AVFoundation/AVFoundation.h>

@interface SoundHandler : NSObject <AVAudioPlayerDelegate>

+(id) sharedSoundPlayer;

//game players
@property AVAudioPlayer* gameAudioPlayer;
@property AVAudioPlayer* backgroundMusicPlayer;

// manage game sounds
-(void) playSoundWithName:(NSString*) soundName andType:(NSString*) soundType;
-(void) playBackgroundMusicWithURL:(NSString*) URL andExtension:(NSString*) extension;
-(void) pauseBackgroundMusic;
-(void) stopBackgroundMusic;
-(void) resumeBackgroundMusic;


@end
